<template>
  <swiper>
    <swiper-slide :key="item.title" v-for="item in banners">
      <a :href="item.link">
        <img class="swiper-img" :src="item.image" />
      </a>
    </swiper-slide>
  </swiper>
</template>

<script>
import Swiper from "components/content/swiper/Swiper";

export default {
  name: "HomeSwiper",
  props: {
    banners: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  components: {
    Swiper,
  },
};
</script>

<style lang="less">
.wrapper {
  margin-top: 44x;
}
.swiper-img {
  width: 100%;
  height: 100%;
  vertical-align: top;
}
</style>
